 
/*  global.h
    global variables used by tm40.c.
    Stephen D. Anderson --- October 29, 1994

    REVISION LOG:

*/

    COM com;            /*  port handle. */
    byte drb;
    byte comm;
    byte send[100];     /*  xmit buffer. */
    byte receive[100];  /*  receive buffer. */
    byte receive_err[100];  /*  receive error buffer. */
    byte status1,status2;   /*  receive status bytes. */
    byte found;     /*  indicates field instrument has been found. */
    byte addr[9];    /* first byte is number preambles used.  Next 5 
                        bytes are field instrument long address.  Next 
                        is device software rev level.  Next is device 
                        hardware rev level.  Next is device flags.  */
    byte polling_addr;  /*  field instr polling address. */
    byte status_wind;   /*  status window handle. */
    byte rec_byte_wind; /*  received bytes window handle. */
    byte addrs[16];     /*  holds indication of field instrums present.  */

    byte cmd0_receive[16][50];
    int cmd0_rec_bytes[16];

